<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<link id="l1" rel="stylesheet" type="text/css" href="css/css1.css">
	<script type="text/javascript">
	//html里怎么写,js里就怎么写
		function settext(){
			var a =document.getElementById("text1");
			//a.value="abacd";
			a['value']="abacd";
		}
	</script>
</head>
<body>
	<input type="text" id="text1">
	<input type="button" value="改文字" onclick="settext()">
</body>
</html>